#include <vector>
using std::vector;

#include <iostream>
using std::cout;
using std::endl;

#include <string>
using std::string;

//void push_back(const value_type& val);
// value_type 即vector<T>中的T

void test1()
{
	vector<int> v1;
	v1.push_back(1);
	
	cout << "v1: " << v1.size() << " ";
	cout << v1[0] << endl;
	
	vector<string> v2;
	v2.push_back("Carl");
	v2.push_back(string("Monday"));
	
	cout << "v2: " << v2.size() << " ";
	cout << v2[0] << endl;
	cout << v2[1] << endl;
	
}

void test2()
{
	vector<string> v1;
	v1.push_back("Carl");
	cout << v1.back() << endl;
	
}

int main()
{
	test2();
	return 0;
}
